﻿using KingsSharp.Common.Data;
using KingsSharp.Core;
using CRM.Admin.Contracts.Dto.Logs;
using CRM.Admin.Contracts.Model.Logs;
using System.Linq;

namespace CRM.Admin.Contracts.Contract.Logs
{
    /// <summary>
    /// 业务操作日志契约
    /// </summary>
    public interface IBusinessLogService: IDependency
    {
        /// <summary>
        /// 业务日志集合
        /// </summary>
        IQueryable<BusinessLog> ItemBusinessLog { get; }

        /// <summary>
        /// 新增业务日志
        /// </summary>
        /// <param name="dtos">业务日志dto</param>
        /// <returns></returns>
        OperationResult InsertBusinessLog(params BusinessLogDto[] dtos);
    }
}
